{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="js"}
<script src="__STATIC__/plugins/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/brands/brands.js?v={$v}" type="text/javascript"></script>
<script>
$(function(){initGrid({$p});})
</script>
{/block}
{block name="main"}
<div class="wst-toolbar">
     <select id='catId'>
       <option value='0'>所属商品分类</option>
       {volist name="gcatList" id="vo"}
       <option value='{$vo['catId']}'>{$vo['catName']}</option>
       {/volist}
     </select> 
   <input type='text' id='key' placeholder='品牌名称'/>  
   <button class="btn btn-primary" onclick='javascript:loadGrid(0)'><i class='fa fa-search'></i>查询</button>
   {if WSTGrant('PPGL_01')}
   <button class="btn btn-success f-right" onclick='javascript:toEdit(0)'><i class='fa fa-plus'></i>新增</button>
   {/if}

   <div style='clear:both'></div>
</div>
<div class='wst-grid'>
 <div id="mmg" class="mmg"></div>
 <div id="pg" style="text-align: right;"></div>
</div>
{/block}